# == Schema Information
# Schema version: 2
#
# Table name: purchases
#
#  id   :integer(11)   not null, primary key
#  date :date          
#  by   :string(255)   
#  from :string(255)   
#

class Purchase < ActiveRecord::Base
  validates_presence_of :date, :from, :by

  has_many :purchase_items
end
